<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <input @keyup.enter="sumbit">
    </div>

    <script src="../node_modules/vue/dist/vue.js"></script>
    <script type="text/javascript" >
    	let vm = new Vue({
            el:'#app',
           methods:{
               sumbit(){
                    alert(123);
                }
           }
        })
    </script>
</body>
</html>